#!/bin/bash

echo "=== 卫星姿态控制系统演示 ==="
echo "编译项目..."
make clean && make

if [ $? -ne 0 ]; then
    echo "编译失败！"
    exit 1
fi

echo "运行测试..."
./build/test_vector3d
./build/test_quaternion

echo "运行主程序..."
./build/satellite_control
